package usersObjects;

/**
 * Created by root on 12/8/13.
 */
public class UserBehaviorsFactory {
    public static UserBehavior getUserBehavior(String type) {
        if (type.equals("UserHistory")) {
            return new UserHistory();
        }

        if (type.equals("UserSave")) {
            return new UserSave();
        }

        if (type.equals("UserStatistic")) {
            return new UserStatistic();
        }

        if (type.equals("UserTesting")) {
            return new UserTesting();
        }

        throw new RuntimeException("Bad UserAction creation: ");
    }
}
